package cs2340.flyingkiwi.todoapp;

/**
 * Holds the info for an account.
 * @author Group Flying Kiwi
 * @version 3 Mar 2012
 */
public class AccountInfo
{
	private String username = null; 
	private String password = null;
	private String name = null;
	private String email = null;
	
	/**
	 * Takes in info for account and saves it.
	 * @param username String that holds username
	 * @param password1 String that holds password typed the first time
	 * @param password2 String that holds password typed the second time
	 * @param name String that holds name
	 * @param email String that holds email
	 */
	public AccountInfo(String username, String password1, String password2,
			String name, String email)
	{
		this.username = username;
		this.password = password1;
		this.name = name;
		this.email = email;
		System.out.println("Account created");
	}
	
	/**
	 * Getters and setters below.
	 * @return
	 */
	
	public String getUsername()
	{
		return username;
	}

	public String getPassword()
	{
		return password;
	}
		
	public String getName()
	{
		return name;
	}
	
	public String getEmail()
	{
		return email;
	}
	
	public void setUsername(String uName)
	{
		username = uName;
	}

	public void setPassword(String p)
	{
		password = p;
	}
	
	public void setName(String n)
	{
		name = n;
	}
	
	public void setEmail(String e)
	{
		email = e;
	}
}